package ltd.hxya.novel.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ltd.hxya.novel.common.bean.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author hty
 * @since 2022-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_operation")
@ApiModel(value="Operation对象", description="")
public class Operation extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "操作id")
    @TableId(value = "operation_id", type = IdType.AUTO)
    private Integer operationId;

    @ApiModelProperty(value = "操作名")
    private String operationName;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @TableField("`key`")
    private String key;

    @TableField("icon")
    private String icon;

    @TableField("path")
    private String path;

    @ApiModelProperty(value = "父操作id")
    private Integer parentId;

    @ApiModelProperty(value = "操作类型 0：菜单，1：组件")
    @TableField("`type`")
    private Integer type;

    @ApiModelProperty(value = "排序字段")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "是否显示在菜单上 1：显示 0：不显示")
    @TableField("`show`")
    private Boolean show;

    @ApiModelProperty(value = "所需权限")
    private String permission;

}
